<?php
class F_Contact extends Apps_Form {
    public function init() {
        $fullName = new Zend_Form_Element_Text(
                'full_name',
                array('required' => true,
                      'class'    => 'input-required'));

        $email = new Zend_Form_Element_Text(
                'email',
                array('required' => true,
                      'validators' => array('emailAddress')));

        $phone = new Zend_Form_Element_Text('phone');

        $subject = new Zend_Form_Element_Text(
                'subject',
                array('required' => true));

        $message = new Zend_Form_Element_Textarea(
                'message',
                array('required' => true,
                      'attribs'  => array('style' => 'height:175px;width:260px')));

        $captcha = new Zend_Form_Element_Text(
                'captcha',
                array('required' => true,
                        'attribs'  => array('style' => 'width:70px')));

        $this->addElements(array($fullName, $email, $phone, $subject, $message, $captcha));
        $this->makeup();
    }
}